export let now: Date = new Date();

export const version: string = 'v1.1.0';

export function getCurrentDate() {
  let n = new Date();

  return `${n.getFullYear()}-${n.getMonth() + 1}-${n.getDate()} `
}

export class Animal {
  /**
  * 构造函数
  */
  constructor(public name: string) {
  }

  move(distanceInMeters: number = 0) {
    console.log(`The ${this.name} moved ${distanceInMeters}m.`);
  }
}

export interface UserInfo {
  id: number;

  name: string;

  gender: 0 | 1;

  age: number
}

export type ElementEventNames = 'click' | 'dbclick' | 'mouseover' | 'keyup' | 'keydown';
